package com.iap.common.model
{
	import com.iap.app.AppGlobal;
	
	import org.robotlegs.mvcs.Actor;
	
	public class Image extends Actor
	{
		private var _id:int;
		private var _filename:String;
		
		public function get id():int { return _id; }
		public function set id(value:int):void { _id = value; }
		
		public function get filename():String { return _filename; }
		public function set filename(value:String):void { _filename = value; }
		
		public function get url():String
		{
			return AppGlobal.ImageEndPoint+ "?id=" +filename;
		}

		public function get thumbnail():String
		{
			return AppGlobal.ImageEndPoint+ "?id=" +filename +"&s=84";
		}

		public function getThumb(thumbWidth:uint):String
		{
			return AppGlobal.ImageEndPoint+ "?id=" +filename +"&s="+ thumbWidth;
		}
	}
}